<template>
  <div :class="['tree-item', type]">
    <slot></slot>
  </div>
</template>

<script>
export default {
  name: 'TreeItem',
  props: {
    type: {
      type: String,
      default: 'dark'
    }
  }
}
</script>

<style lang="scss" scoped>
.tree-item {
  box-sizing: border-box;
  width: 100%;
  height: 30px;
  line-height: 30px;
  font-size: 14px;
  border-bottom: 1px solid #ccc;
  &.dark {
    color: #fff;
    background-color: #333;
  }
}
</style>